ModuleInfo "Version: 0.1"
ModuleInfo "Main Author: Cal3d."
ModuleInfo "License: You are free to use this code as you please"
ModuleInfo "Please see readme.txt for more details"
import brl.blitz
import brl.math
CalMatrix^Object{
.dxdx#&
.dydx#&
.dzdx#&
.dxdy#&
.dydy#&
.dzdy#&
.dxdz#&
.dydz#&
.dzdz#&
-New%()="_c3d_cal3d_CalMatrix_New"
-Delete%()="_c3d_cal3d_CalMatrix_Delete"
+FromMat:CalMatrix(m:CalMatrix)="_c3d_cal3d_CalMatrix_FromMat"
-assign%(q:CalQuaternion)="_c3d_cal3d_CalMatrix_assign"
-multMatrixLocal:CalMatrix(m:CalMatrix)="_c3d_cal3d_CalMatrix_multMatrixLocal"
-multScalarLocal:CalMatrix(factor#)="_c3d_cal3d_CalMatrix_multScalarLocal"
-blend%(factor#,m:CalMatrix)="_c3d_cal3d_CalMatrix_blend"
-det#()="_c3d_cal3d_CalMatrix_det"
}="c3d_cal3d_CalMatrix"
CalQuaternion^Object{
.x#&
.y#&
.z#&
.w#&
-New%()="_c3d_cal3d_CalQuaternion_New"
-Delete%()="_c3d_cal3d_CalQuaternion_Delete"
+FromQuat:CalQuaternion(other:CalQuaternion)="_c3d_cal3d_CalQuaternion_FromQuat"
+FromCoords:CalQuaternion(xx#,yy#,zz#,ww#)="_c3d_cal3d_CalQuaternion_FromCoords"
-assign%(other:CalQuaternion)="_c3d_cal3d_CalQuaternion_assign"
-multQuaternionLocal:CalQuaternion(q:CalQuaternion)="_c3d_cal3d_CalQuaternion_multQuaternionLocal"
-multVectorLocal:CalQuaternion(v:CalVector)="_c3d_cal3d_CalQuaternion_multVectorLocal"
-equalTo@(q:CalQuaternion)="_c3d_cal3d_CalQuaternion_equalTo"
-blend%(d#,q:CalQuaternion)="_c3d_cal3d_CalQuaternion_blend"
-clear%()="_c3d_cal3d_CalQuaternion_clear"
-conjugate%()="_c3d_cal3d_CalQuaternion_conjugate"
-invert%()="_c3d_cal3d_CalQuaternion_invert"
}="c3d_cal3d_CalQuaternion"
quaternionMult:CalQuaternion(q0:CalQuaternion,q1:CalQuaternion)="c3d_cal3d_quaternionMult"
shortestArc:CalQuaternion(from:CalVector,tto:CalVector)="c3d_cal3d_shortestArc"
CalVector^Object{
.x#&
.y#&
.z#&
-New%()="_c3d_cal3d_CalVector_New"
-Delete%()="_c3d_cal3d_CalVector_Delete"
+FromVector:CalVector(other:CalVector)="_c3d_cal3d_CalVector_FromVector"
+FromCoords:CalVector(xx#,yy#,zz#)="_c3d_cal3d_CalVector_FromCoords"
-assign%(v:CalVertex)="_c3d_cal3d_CalVector_assign"
-assigncoords%(xx#,yy#,zz#)="_c3d_cal3d_CalVector_assigncoords"
-assignvector%(v:CalVector)="_c3d_cal3d_CalVector_assignvector"
-addLocal:CalVector(v:CalVector)="_c3d_cal3d_CalVector_addLocal"
-subLocal:CalVector(v:CalVector)="_c3d_cal3d_CalVector_subLocal"
-multScalarLocal:CalVector(factor#)="_c3d_cal3d_CalVector_multScalarLocal"
-multQuaternionLocal:CalVector(q:CalQuaternion)="_c3d_cal3d_CalVector_multQuaternionLocal"
-multMatrixLocal:CalVector(m:CalMatrix)="_c3d_cal3d_CalVector_multMatrixLocal"
-blend%(d#,v:CalVector)="_c3d_cal3d_CalVector_blend"
-divScalarLocal:CalVector(factor#)="_c3d_cal3d_CalVector_divScalarLocal"
-equalTo@(v:CalVector)="_c3d_cal3d_CalVector_equalTo"
-clear%()="_c3d_cal3d_CalVector_clear"
-length#()="_c3d_cal3d_CalVector_length"
-normalize#()="_c3d_cal3d_CalVector_normalize"
}="c3d_cal3d_CalVector"
vectorAdd:CalVector(v0:CalVector,v1:CalVector)="c3d_cal3d_vectorAdd"
vectorSub:CalVector(v0:CalVector,v1:CalVector)="c3d_cal3d_vectorSub"
vectorSubVert:CalVector(v0:CalVertex,v1:CalVertex)="c3d_cal3d_vectorSubVert"
vectorScalarMult:CalVector(v:CalVector,d#)="c3d_cal3d_vectorScalarMult"
vectorScalarDiv:CalVector(v:CalVector,d#)="c3d_cal3d_vectorScalarDiv"
vectorDot#(v0:CalVector,v1:CalVector)="c3d_cal3d_vectorDot"
vectorCross:CalVector(v0:CalVector,v1:CalVector)="c3d_cal3d_vectorCross"
CalTextureCoordinate^Object{
.u#&
.v#&
-New%()="_c3d_cal3d_CalTextureCoordinate_New"
-Delete%()="_c3d_cal3d_CalTextureCoordinate_Delete"
+FromUV:CalTextureCoordinate(uv:CalTextureCoordinate)="_c3d_cal3d_CalTextureCoordinate_FromUV"
+FromCoords:CalTextureCoordinate(uu#,vv#)="_c3d_cal3d_CalTextureCoordinate_FromCoords"
}="c3d_cal3d_CalTextureCoordinate"
CalTangentSpace^Object{
.tangent:CalVector&
.crossFactor#&
-New%()="_c3d_cal3d_CalTangentSpace_New"
-Delete%()="_c3d_cal3d_CalTangentSpace_Delete"
+FromVector:CalTangentSpace(t:CalVector,c#=0#)="_c3d_cal3d_CalTangentSpace_FromVector"
+FromCoords:CalTangentSpace(xx#,yy#,zz#,c#=0#)="_c3d_cal3d_CalTangentSpace_FromCoords"
}="c3d_cal3d_CalTangentSpace"
CalInfluence^Object{
.boneId%&
.weight#&
-New%()="_c3d_cal3d_CalInfluence_New"
-Delete%()="_c3d_cal3d_CalInfluence_Delete"
+FromCoords:CalInfluence(b%,w#)="_c3d_cal3d_CalInfluence_FromCoords"
}="c3d_cal3d_CalInfluence"
CalPhysicalProperty^Object{
.weight#&
.position:CalVector&
.positionOld:CalVector&
.force:CalVector&
-New%()="_c3d_cal3d_CalPhysicalProperty_New"
-Delete%()="_c3d_cal3d_CalPhysicalProperty_Delete"
+FromWeight:CalPhysicalProperty(w#)="_c3d_cal3d_CalPhysicalProperty_FromWeight"
+FromCoords:CalPhysicalProperty(p:CalVector,o:CalVector,f:CalVector,w#=0#)="_c3d_cal3d_CalPhysicalProperty_FromCoords"
}="c3d_cal3d_CalPhysicalProperty"
CalVertex^Object{
.position:CalVector&
.normal:CalVector&
.vectorInfluence:CalInfluence&[]&
.collapseId%&
.faceCollapseCount%&
-New%()="_c3d_cal3d_CalVertex_New"
-Delete%()="_c3d_cal3d_CalVertex_Delete"
+FromVector:CalVertex(p:CalVector,n:CalVector="bbNullObject")="_c3d_cal3d_CalVertex_FromVector"
+FromData:CalVertex(p:CalVector,n:CalVector,i:CalInfluence&[],c%=0,fcc%=0)="_c3d_cal3d_CalVertex_FromData"
-assign%(xx#,yy#,zz#)="_c3d_cal3d_CalVertex_assign"
-assignVector%(p:CalVector)="_c3d_cal3d_CalVertex_assignVector"
}="c3d_cal3d_CalVertex"
CalFace^Object{
.vertexId%&[]&
-New%()="_c3d_cal3d_CalFace_New"
-Delete%()="_c3d_cal3d_CalFace_Delete"
+FromCoords:CalFace(v1%,v2%,v3%)="_c3d_cal3d_CalFace_FromCoords"
+FromFace:CalFace(f:CalFace)="_c3d_cal3d_CalFace_FromFace"
+FromArr:CalFace(vi%&[])="_c3d_cal3d_CalFace_FromArr"
}="c3d_cal3d_CalFace"
CalSpring^Object{
.vertexId%&[]&
.springCoefficient#&
.idleLength#&
-New%()="_c3d_cal3d_CalSpring_New"
-Delete%()="_c3d_cal3d_CalSpring_Delete"
+FromCoords:CalSpring(id0%,id1%,sc#=0#,l#=0#)="_c3d_cal3d_CalSpring_FromCoords"
+FromArr:CalSpring(id%&[],sc#=0#,l#=0#)="_c3d_cal3d_CalSpring_FromArr"
}="c3d_cal3d_CalSpring"
CalPlane^Object{
.a#&
.b#&
.c#&
.d#&
-New%()="_c3d_cal3d_CalPlane_New"
-Delete%()="_c3d_cal3d_CalPlane_Delete"
-eval#(p:CalVector)="_c3d_cal3d_CalPlane_eval"
-setPosition%(p:CalVector)="_c3d_cal3d_CalPlane_setPosition"
-setNormal%(n:CalVector)="_c3d_cal3d_CalPlane_setNormal"
-dist#(p:CalVector)="_c3d_cal3d_CalPlane_dist"
}="c3d_cal3d_CalPlane"
CalBoundingBox^Object{
.plane:CalPlane&[]&
-New%()="_c3d_cal3d_CalBoundingBox_New"
-Delete%()="_c3d_cal3d_CalBoundingBox_Delete"
-computePoints:CalVector&[](points:CalVector&[])="_c3d_cal3d_CalBoundingBox_computePoints"
}="c3d_cal3d_CalBoundingBox"
StringMap^Object{
.smap:StringNode&[]&
-New%()="_c3d_cal3d_StringMap_New"
-Delete%()="_c3d_cal3d_StringMap_Delete"
-Set%(k$,v$)="_c3d_cal3d_StringMap_Set"
-Add%(k$,v$)="_c3d_cal3d_StringMap_Add"
-Contains@(k$)="_c3d_cal3d_StringMap_Contains"
-Get$(k$)="_c3d_cal3d_StringMap_Get"
}="c3d_cal3d_StringMap"
StringNode^Object{
.key$&
.value$&
-New%()="_c3d_cal3d_StringNode_New"
-Delete%()="_c3d_cal3d_StringNode_Delete"
+FromData:StringNode(k$=$"",v$=$"")="_c3d_cal3d_StringNode_FromData"
}="c3d_cal3d_StringNode"
IntMap^Object{
.smap:IntNode&[]&
-New%()="_c3d_cal3d_IntMap_New"
-Delete%()="_c3d_cal3d_IntMap_Delete"
-Set%(k%,v:Object)="_c3d_cal3d_IntMap_Set"
-Add%(k%,v:Object)="_c3d_cal3d_IntMap_Add"
-Contains@(k%)="_c3d_cal3d_IntMap_Contains"
-Get:Object(k%)="_c3d_cal3d_IntMap_Get"
}="c3d_cal3d_IntMap"
IntNode^Object{
.key%&
.value:Object&
-New%()="_c3d_cal3d_IntNode_New"
-Delete%()="_c3d_cal3d_IntNode_Delete"
+FromData:IntNode(k%=0,v:Object="bbNullObject")="_c3d_cal3d_IntNode_FromData"
}="c3d_cal3d_IntNode"
CalCoreMaterial^Object{
.m_ambientColor:CalColor&
.m_diffuseColor:CalColor&
.m_specularColor:CalColor&
.m_shininess#&
.m_vectorMap:CalMap&[]&
.m_userData:Object&
.m_name$&
.m_filename$&
-New%()="_c3d_cal3d_CalCoreMaterial_New"
-Delete%()="_c3d_cal3d_CalCoreMaterial_Delete"
-getAmbientColor:CalColor()="_c3d_cal3d_CalCoreMaterial_getAmbientColor"
-getDiffuseColor:CalColor()="_c3d_cal3d_CalCoreMaterial_getDiffuseColor"
-getMapCount%()="_c3d_cal3d_CalCoreMaterial_getMapCount"
-getMapFilename$(mapId%)="_c3d_cal3d_CalCoreMaterial_getMapFilename"
-getMapUserData:Object(mapId%)="_c3d_cal3d_CalCoreMaterial_getMapUserData"
-getShininess#()="_c3d_cal3d_CalCoreMaterial_getShininess"
-getSpecularColor:CalColor()="_c3d_cal3d_CalCoreMaterial_getSpecularColor"
-getUserData:Object()="_c3d_cal3d_CalCoreMaterial_getUserData"
-getVectorMap:CalMap&[]()="_c3d_cal3d_CalCoreMaterial_getVectorMap"
-getFilename$()="_c3d_cal3d_CalCoreMaterial_getFilename"
-getName$()="_c3d_cal3d_CalCoreMaterial_getName"
-reserve@(mapCount%)="_c3d_cal3d_CalCoreMaterial_reserve"
-setAmbientColor%(ambientColor:CalColor)="_c3d_cal3d_CalCoreMaterial_setAmbientColor"
-setDiffuseColor%(diffuseColor:CalColor)="_c3d_cal3d_CalCoreMaterial_setDiffuseColor"
-setMap@(mapId%,map:CalMap)="_c3d_cal3d_CalCoreMaterial_setMap"
-setMapUserData@(mapId%,userData:Object)="_c3d_cal3d_CalCoreMaterial_setMapUserData"
-setShininess%(shininess#)="_c3d_cal3d_CalCoreMaterial_setShininess"
-setSpecularColor%(specularColor:CalColor)="_c3d_cal3d_CalCoreMaterial_setSpecularColor"
-setFilename%(filename$)="_c3d_cal3d_CalCoreMaterial_setFilename"
-setName%(name$)="_c3d_cal3d_CalCoreMaterial_setName"
-setUserData%(userData:Object)="_c3d_cal3d_CalCoreMaterial_setUserData"
}="c3d_cal3d_CalCoreMaterial"
CalColor^Object{
.red#&
.green#&
.blue#&
.alpha#&
-New%()="_c3d_cal3d_CalColor_New"
-Delete%()="_c3d_cal3d_CalColor_Delete"
+FromColor:CalColor(c:CalColor)="_c3d_cal3d_CalColor_FromColor"
+FromValues:CalColor(r#,g#,b#,a#)="_c3d_cal3d_CalColor_FromValues"
}="c3d_cal3d_CalColor"
CalMap^Object{
.filename$&
.userData:Object&
-New%()="_c3d_cal3d_CalMap_New"
-Delete%()="_c3d_cal3d_CalMap_Delete"
}="c3d_cal3d_CalMap"
CalCoreSubmesh^Object{
.m_vectorVertex:CalVertex&[]&
.m_vectorTangentsEnabled@&[]&
.m_vectorvectorTangentSpace:CalTangentSpace&[]&[]&
.m_vectorvectorTangentSpacelocal:CalTangentSpace&[]&[]&
.m_vectorvectorTextureCoordinate:CalTextureCoordinate&[]&[]&
.m_vectorPhysicalProperty:CalPhysicalProperty&[]&
.m_vectorFace:CalFace&[]&
.m_vectorSpring:CalSpring&[]&
.m_vectorCoreSubMorphTarget:CalCoreSubMorphTarget&[]&
.m_coreMaterialThreadId%&
.m_lodCount%&
-New%()="_c3d_cal3d_CalCoreSubmesh_New"
-Delete%()="_c3d_cal3d_CalCoreSubmesh_Delete"
-getCoreMaterialThreadId%()="_c3d_cal3d_CalCoreSubmesh_getCoreMaterialThreadId"
-getFaceCount%()="_c3d_cal3d_CalCoreSubmesh_getFaceCount"
-getLodCount%()="_c3d_cal3d_CalCoreSubmesh_getLodCount"
-getSpringCount%()="_c3d_cal3d_CalCoreSubmesh_getSpringCount"
-getVectorFace:CalFace&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorFace"
-getVectorPhysicalProperty:CalPhysicalProperty&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorPhysicalProperty"
-getVectorSpring:CalSpring&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorSpring"
-getVectorVectorTangentSpace:CalTangentSpace&[]&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorVectorTangentSpace"
-getVectorVectorTextureCoordinate:CalTextureCoordinate&[]&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorVectorTextureCoordinate"
-getVectorVertex:CalVertex&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorVertex"
-getVertexCount%()="_c3d_cal3d_CalCoreSubmesh_getVertexCount"
-isTangentsEnabled@(mapId%)="_c3d_cal3d_CalCoreSubmesh_isTangentsEnabled"
-enableTangents@(mapId%,enabled@)="_c3d_cal3d_CalCoreSubmesh_enableTangents"
-reserve@(vertexCount%,textureCoordinateCount%,faceCount%,springCount%)="_c3d_cal3d_CalCoreSubmesh_reserve"
-setCoreMaterialThreadId%(coreMaterialThreadId%)="_c3d_cal3d_CalCoreSubmesh_setCoreMaterialThreadId"
-setFace@(faceId%,face:CalFace)="_c3d_cal3d_CalCoreSubmesh_setFace"
-setLodCount%(lodCount%)="_c3d_cal3d_CalCoreSubmesh_setLodCount"
-setPhysicalProperty@(vertexId%,physicalProperty:CalPhysicalProperty)="_c3d_cal3d_CalCoreSubmesh_setPhysicalProperty"
-setSpring@(springId%,spring:CalSpring)="_c3d_cal3d_CalCoreSubmesh_setSpring"
-setTangentSpace@(vertexId%,textureCoordinateId%,tangent:CalVector,crossFactor#)="_c3d_cal3d_CalCoreSubmesh_setTangentSpace"
-setTextureCoordinate@(vertexId%,textureCoordinateId%,textureCoordinate:CalTextureCoordinate)="_c3d_cal3d_CalCoreSubmesh_setTextureCoordinate"
-setVertex@(vertexId%,vertex:CalVertex)="_c3d_cal3d_CalCoreSubmesh_setVertex"
-addCoreSubMorphTarget%(coreSubMorphTarget:CalCoreSubMorphTarget)="_c3d_cal3d_CalCoreSubmesh_addCoreSubMorphTarget"
-getCoreSubMorphTarget:CalCoreSubMorphTarget(subMorphTargetId%)="_c3d_cal3d_CalCoreSubmesh_getCoreSubMorphTarget"
-getCoreSubMorphTargetCount%()="_c3d_cal3d_CalCoreSubmesh_getCoreSubMorphTargetCount"
-getVectorCoreSubMorphTarget:CalCoreSubMorphTarget&[]()="_c3d_cal3d_CalCoreSubmesh_getVectorCoreSubMorphTarget"
-scale%(factor#)="_c3d_cal3d_CalCoreSubmesh_scale"
-UpdateTangentVector%(v0%,v1%,v2%,mapId%)="_c3d_cal3d_CalCoreSubmesh_UpdateTangentVector"
}="c3d_cal3d_CalCoreSubmesh"
CalCoreMesh^Object{
.m_vectorCoreSubmesh:CalCoreSubmesh&[]&
.m_name$&
.m_filename$&
-New%()="_c3d_cal3d_CalCoreMesh_New"
-Delete%()="_c3d_cal3d_CalCoreMesh_Delete"
-addCoreSubmesh%(coreSubmesh:CalCoreSubmesh)="_c3d_cal3d_CalCoreMesh_addCoreSubmesh"
-getCoreSubmesh:CalCoreSubmesh(coreSubmeshId%)="_c3d_cal3d_CalCoreMesh_getCoreSubmesh"
-getCoreSubmeshCount%()="_c3d_cal3d_CalCoreMesh_getCoreSubmeshCount"
-getVectorCoreSubmesh:CalCoreSubmesh&[]()="_c3d_cal3d_CalCoreMesh_getVectorCoreSubmesh"
-addAsMorphTarget%(coreMesh:CalCoreMesh)="_c3d_cal3d_CalCoreMesh_addAsMorphTarget"
-scale%(factor#)="_c3d_cal3d_CalCoreMesh_scale"
-setFilename%(filename$)="_c3d_cal3d_CalCoreMesh_setFilename"
-getFilename$()="_c3d_cal3d_CalCoreMesh_getFilename"
-setName%(name$)="_c3d_cal3d_CalCoreMesh_setName"
-getName$()="_c3d_cal3d_CalCoreMesh_getName"
}="c3d_cal3d_CalCoreMesh"
CalCoreBone^Object{
.m_name$&
.m_coreSkeleton:CalCoreSkeleton&
.m_parentId%&
.m_listChildId%&[]&
.m_translation:CalVector&
.m_rotation:CalQuaternion&
.m_translationAbsolute:CalVector&
.m_rotationAbsolute:CalQuaternion&
.m_translationBoneSpace:CalVector&
.m_rotationBoneSpace:CalQuaternion&
.m_userData:Object&
.m_boundingBox:CalBoundingBox&
.m_boundingPosition:CalVector&[]&
.m_boundingBoxPrecomputed@&
-New%()="_c3d_cal3d_CalCoreBone_New"
-Delete%()="_c3d_cal3d_CalCoreBone_Delete"
+Create:CalCoreBone(name$=$"Bone")="_c3d_cal3d_CalCoreBone_Create"
-addChildId@(childId%)="_c3d_cal3d_CalCoreBone_addChildId"
-calculateState%()="_c3d_cal3d_CalCoreBone_calculateState"
-getListChildId%&[]()="_c3d_cal3d_CalCoreBone_getListChildId"
-getName$()="_c3d_cal3d_CalCoreBone_getName"
-getParentId%()="_c3d_cal3d_CalCoreBone_getParentId"
-getCoreSkeleton:CalCoreSkeleton()="_c3d_cal3d_CalCoreBone_getCoreSkeleton"
-GetRotation:CalQuaternion()="_c3d_cal3d_CalCoreBone_GetRotation"
-getRotationAbsolute:CalQuaternion()="_c3d_cal3d_CalCoreBone_getRotationAbsolute"
-getRotationBoneSpace:CalQuaternion()="_c3d_cal3d_CalCoreBone_getRotationBoneSpace"
-getTranslation:CalVector()="_c3d_cal3d_CalCoreBone_getTranslation"
-getTranslationAbsolute:CalVector()="_c3d_cal3d_CalCoreBone_getTranslationAbsolute"
-getTranslationBoneSpace:CalVector()="_c3d_cal3d_CalCoreBone_getTranslationBoneSpace"
-getUserData:Object()="_c3d_cal3d_CalCoreBone_getUserData"
-setCoreSkeleton%(coreSkeleton:CalCoreSkeleton)="_c3d_cal3d_CalCoreBone_setCoreSkeleton"
-setParentId%(parentId%)="_c3d_cal3d_CalCoreBone_setParentId"
-SetRotation%(rotation:CalQuaternion)="_c3d_cal3d_CalCoreBone_SetRotation"
-setRotationBoneSpace%(rotation:CalQuaternion)="_c3d_cal3d_CalCoreBone_setRotationBoneSpace"
-setTranslation%(translation:CalVector)="_c3d_cal3d_CalCoreBone_setTranslation"
-setTranslationBoneSpace%(translation:CalVector)="_c3d_cal3d_CalCoreBone_setTranslationBoneSpace"
-setUserData%(userData:Object)="_c3d_cal3d_CalCoreBone_setUserData"
-calculateBoundingBox%(coreModel:CalCoreModel)="_c3d_cal3d_CalCoreBone_calculateBoundingBox"
-getBoundingBox:CalBoundingBox()="_c3d_cal3d_CalCoreBone_getBoundingBox"
-getBoundingData:CalVector(planeId%,position:CalVector)="_c3d_cal3d_CalCoreBone_getBoundingData"
-isBoundingBoxPrecomputed@()="_c3d_cal3d_CalCoreBone_isBoundingBoxPrecomputed"
-scale%(factor#)="_c3d_cal3d_CalCoreBone_scale"
}="c3d_cal3d_CalCoreBone"
CalCoreSkeleton^Object{
.m_vectorCoreBone:CalCoreBone&[]&
.m_mapCoreBoneNames:StringMap&
.m_vectorRootCoreBoneId%&[]&
-New%()="_c3d_cal3d_CalCoreSkeleton_New"
-Delete%()="_c3d_cal3d_CalCoreSkeleton_Delete"
-addCoreBone%(coreBone:CalCoreBone)="_c3d_cal3d_CalCoreSkeleton_addCoreBone"
-calculateState%()="_c3d_cal3d_CalCoreSkeleton_calculateState"
-getCoreBonebyID:CalCoreBone(coreBoneId%)="_c3d_cal3d_CalCoreSkeleton_getCoreBonebyID"
-getCoreBone:CalCoreBone(coreBoneId$)="_c3d_cal3d_CalCoreSkeleton_getCoreBone"
-getCoreBoneId%(name$)="_c3d_cal3d_CalCoreSkeleton_getCoreBoneId"
-mapCoreBoneName@(coreBoneId%,name$)="_c3d_cal3d_CalCoreSkeleton_mapCoreBoneName"
-getVectorRootCoreBoneId%&[]()="_c3d_cal3d_CalCoreSkeleton_getVectorRootCoreBoneId"
-getVectorCoreBone:CalCoreBone&[]()="_c3d_cal3d_CalCoreSkeleton_getVectorCoreBone"
-calculateBoundingBoxes%(coreModel:CalCoreModel)="_c3d_cal3d_CalCoreSkeleton_calculateBoundingBoxes"
-scale%(factor#)="_c3d_cal3d_CalCoreSkeleton_scale"
}="c3d_cal3d_CalCoreSkeleton"
CalCoreModel^Object{
.m_name$&
.m_coreSkeleton:CalCoreSkeleton&
.m_vectorCoreAnimation:CalCoreAnimation&[]&
.m_vectorCoreMorphAnimation:CalCoreMorphAnimation&[]&
.m_vectorCoreAnimatedMorph:CalCoreAnimatedMorph&[]&
.m_vectorCoreMesh:CalCoreMesh&[]&
.m_vectorCoreMaterial:CalCoreMaterial&[]&
.m_mapmapCoreMaterialThread:IntMap&
.m_animationName:StringMap&
.m_materialName:StringMap&
.m_meshName:StringMap&
.m_userData:Object&
-New%()="_c3d_cal3d_CalCoreModel_New"
-Delete%()="_c3d_cal3d_CalCoreModel_Delete"
-getUserData:Object()="_c3d_cal3d_CalCoreModel_getUserData"
-setUserData%(userData:Object)="_c3d_cal3d_CalCoreModel_setUserData"
-scale%(factor#)="_c3d_cal3d_CalCoreModel_scale"
-addCoreAnimation%(coreAnimation:CalCoreAnimation)="_c3d_cal3d_CalCoreModel_addCoreAnimation"
-getCoreAnimation:CalCoreAnimation(coreAnimationId%)="_c3d_cal3d_CalCoreModel_getCoreAnimation"
-getCoreAnimationCount%()="_c3d_cal3d_CalCoreModel_getCoreAnimationCount"
-loadCoreAnimation%(filename$)="_c3d_cal3d_CalCoreModel_loadCoreAnimation"
-unloadCoreAnimationbyID%(coreAnimationId%)="_c3d_cal3d_CalCoreModel_unloadCoreAnimationbyID"
-unloadCoreAnimation%(coreAnimationId$)="_c3d_cal3d_CalCoreModel_unloadCoreAnimation"
-saveCoreAnimation@(filename$,coreAnimationId%)="_c3d_cal3d_CalCoreModel_saveCoreAnimation"
-addAnimationName@(name$,coreAnimationId%)="_c3d_cal3d_CalCoreModel_addAnimationName"
-getCoreAnimationId%(animationName$)="_c3d_cal3d_CalCoreModel_getCoreAnimationId"
-addCoreMorphAnimation%(coreMorphAnimation:CalCoreMorphAnimation)="_c3d_cal3d_CalCoreModel_addCoreMorphAnimation"
-addCoreAnimatedMorph%(pCoreAnimatedMorph:CalCoreAnimatedMorph)="_c3d_cal3d_CalCoreModel_addCoreAnimatedMorph"
-removeCoreAnimatedMorph@(id%)="_c3d_cal3d_CalCoreModel_removeCoreAnimatedMorph"
-getCoreMorphAnimation:CalCoreMorphAnimation(coreMorphAnimationId%)="_c3d_cal3d_CalCoreModel_getCoreMorphAnimation"
-getCoreAnimatedMorph:CalCoreAnimatedMorph(coreAnimatedMorphId%)="_c3d_cal3d_CalCoreModel_getCoreAnimatedMorph"
-getCoreMorphAnimationCount%()="_c3d_cal3d_CalCoreModel_getCoreMorphAnimationCount"
-addCoreMaterial%(coreMaterial:CalCoreMaterial)="_c3d_cal3d_CalCoreModel_addCoreMaterial"
-createCoreMaterialThread@(coreMaterialThreadId%)="_c3d_cal3d_CalCoreModel_createCoreMaterialThread"
-getCoreMaterial:CalCoreMaterial(coreMaterialId%)="_c3d_cal3d_CalCoreModel_getCoreMaterial"
-getCoreMaterialCount%()="_c3d_cal3d_CalCoreModel_getCoreMaterialCount"
-getCoreMaterialId%(materialName$)="_c3d_cal3d_CalCoreModel_getCoreMaterialId"
-getCoreMaterialIdbyID%(materialId%,coreMaterialSetId%)="_c3d_cal3d_CalCoreModel_getCoreMaterialIdbyID"
-loadCoreMaterial%(filename$)="_c3d_cal3d_CalCoreModel_loadCoreMaterial"
-unloadCoreMaterialbyID%(coreMaterialId%)="_c3d_cal3d_CalCoreModel_unloadCoreMaterialbyID"
-unloadCoreMaterial%(coreMaterialName$)="_c3d_cal3d_CalCoreModel_unloadCoreMaterial"
-saveCoreMaterial%(filename$,coreMaterialId%)="_c3d_cal3d_CalCoreModel_saveCoreMaterial"
-setCoreMaterialId@(coreMaterialThreadId%,coreMaterialSetId%,coreMaterialId%)="_c3d_cal3d_CalCoreModel_setCoreMaterialId"
-addMaterialName@(name$,coreMaterialId%)="_c3d_cal3d_CalCoreModel_addMaterialName"
-addCoreMesh%(coreMesh:CalCoreMesh)="_c3d_cal3d_CalCoreModel_addCoreMesh"
-getCoreMesh:CalCoreMesh(coreMeshId%)="_c3d_cal3d_CalCoreModel_getCoreMesh"
-getCoreMeshCount%()="_c3d_cal3d_CalCoreModel_getCoreMeshCount"
-loadCoreMesh%(filename$)="_c3d_cal3d_CalCoreModel_loadCoreMesh"
-unloadCoreMeshbyID%(coreMeshId%)="_c3d_cal3d_CalCoreModel_unloadCoreMeshbyID"
-unloadCoreMesh%(coreMeshName$)="_c3d_cal3d_CalCoreModel_unloadCoreMesh"
-saveCoreMesh%(filename$,coreMeshId%)="_c3d_cal3d_CalCoreModel_saveCoreMesh"
-addMeshName@(meshName$,coreMeshId%)="_c3d_cal3d_CalCoreModel_addMeshName"
-getCoreMeshId%(meshName$)="_c3d_cal3d_CalCoreModel_getCoreMeshId"
-makemodel:CalModel()="_c3d_cal3d_CalCoreModel_makemodel"
-getCoreSkeleton:CalCoreSkeleton()="_c3d_cal3d_CalCoreModel_getCoreSkeleton"
-loadCoreSkeleton%(filename$)="_c3d_cal3d_CalCoreModel_loadCoreSkeleton"
-saveCoreSkeleton%(filename$)="_c3d_cal3d_CalCoreModel_saveCoreSkeleton"
-setCoreSkeleton%(coreSkeleton:CalCoreSkeleton)="_c3d_cal3d_CalCoreModel_setCoreSkeleton"
-addBoneName%(boneName$,boneId%)="_c3d_cal3d_CalCoreModel_addBoneName"
-getBoneId%(boneName$)="_c3d_cal3d_CalCoreModel_getBoneId"
}="c3d_cal3d_CalCoreModel"
CalCoreAnimation^Object{
.m_listCallbacks:CalCallbackRecord&[]&
.m_duration#&
.m_listCoreTrack:CalCoreTrack&[]&
.m_name$&
.m_filename$&
-New%()="_c3d_cal3d_CalCoreAnimation_New"
-Delete%()="_c3d_cal3d_CalCoreAnimation_Delete"
-addCoreTrack@(coreTrack:CalCoreTrack)="_c3d_cal3d_CalCoreAnimation_addCoreTrack"
-getCoreTrack:CalCoreTrack(coreBoneId%)="_c3d_cal3d_CalCoreAnimation_getCoreTrack"
-getDuration#()="_c3d_cal3d_CalCoreAnimation_getDuration"
-setDuration%(duration#)="_c3d_cal3d_CalCoreAnimation_setDuration"
-scale%(factor#)="_c3d_cal3d_CalCoreAnimation_scale"
-setFilename%(filename$)="_c3d_cal3d_CalCoreAnimation_setFilename"
-getFilename$()="_c3d_cal3d_CalCoreAnimation_getFilename"
-setName%(name$)="_c3d_cal3d_CalCoreAnimation_setName"
-getName$()="_c3d_cal3d_CalCoreAnimation_getName"
-registerCallback%(callback:CalAnimationCallback,min_interval#)="_c3d_cal3d_CalCoreAnimation_registerCallback"
-removeCallback%(callback:CalAnimationCallback)="_c3d_cal3d_CalCoreAnimation_removeCallback"
-getCallbackList:CalCallbackRecord&[]()="_c3d_cal3d_CalCoreAnimation_getCallbackList"
-getTrackCount%()="_c3d_cal3d_CalCoreAnimation_getTrackCount"
-getListCoreTrack:CalCoreTrack&[]()="_c3d_cal3d_CalCoreAnimation_getListCoreTrack"
-getTotalNumberOfKeyframes%()="_c3d_cal3d_CalCoreAnimation_getTotalNumberOfKeyframes"
}="c3d_cal3d_CalCoreAnimation"
CalCallbackRecord^Object{
.callback:CalAnimationCallback&
.min_interval#&
-New%()="_c3d_cal3d_CalCallbackRecord_New"
-Delete%()="_c3d_cal3d_CalCallbackRecord_Delete"
+FromCallback:CalCallbackRecord(cac:CalAnimationCallback,minint#)="_c3d_cal3d_CalCallbackRecord_FromCallback"
}="c3d_cal3d_CalCallbackRecord"
CalCoreKeyframe^Object{
.m_time#&
.m_translation:CalVector&
.m_rotation:CalQuaternion&
-New%()="_c3d_cal3d_CalCoreKeyframe_New"
-Delete%()="_c3d_cal3d_CalCoreKeyframe_Delete"
+FromData:CalCoreKeyframe(time#,t:CalVector,r:CalQuaternion)="_c3d_cal3d_CalCoreKeyframe_FromData"
-Create@()="_c3d_cal3d_CalCoreKeyframe_Create"
-destroy%()="_c3d_cal3d_CalCoreKeyframe_destroy"
-GetRotation:CalQuaternion()="_c3d_cal3d_CalCoreKeyframe_GetRotation"
-getTranslation:CalVector()="_c3d_cal3d_CalCoreKeyframe_getTranslation"
-getTime#()="_c3d_cal3d_CalCoreKeyframe_getTime"
-SetRotation%(rotation:CalQuaternion)="_c3d_cal3d_CalCoreKeyframe_SetRotation"
-setTranslation%(translation:CalVector)="_c3d_cal3d_CalCoreKeyframe_setTranslation"
-setTime%(time#)="_c3d_cal3d_CalCoreKeyframe_setTime"
}="c3d_cal3d_CalCoreKeyframe"
CalCoreTrack^Object{
.m_coreBoneId%&
.m_keyframes:CalCoreKeyframe&[]&
-New%()="_c3d_cal3d_CalCoreTrack_New"
-Delete%()="_c3d_cal3d_CalCoreTrack_Delete"
-Create@()="_c3d_cal3d_CalCoreTrack_Create"
-destroy%()="_c3d_cal3d_CalCoreTrack_destroy"
-getState@(time#,translation:CalVector,rotation:CalQuaternion)="_c3d_cal3d_CalCoreTrack_getState"
-getCoreBoneId%()="_c3d_cal3d_CalCoreTrack_getCoreBoneId"
-setCoreBoneId@(coreBoneId%)="_c3d_cal3d_CalCoreTrack_setCoreBoneId"
-getCoreKeyframeCount%()="_c3d_cal3d_CalCoreTrack_getCoreKeyframeCount"
-getCoreKeyframe:CalCoreKeyframe(index%)="_c3d_cal3d_CalCoreTrack_getCoreKeyframe"
-addCoreKeyframe@(coreKeyframe:CalCoreKeyframe)="_c3d_cal3d_CalCoreTrack_addCoreKeyframe"
-removeCoreKeyFrame%(index%)="_c3d_cal3d_CalCoreTrack_removeCoreKeyFrame"
-scale%(factor#)="_c3d_cal3d_CalCoreTrack_scale"
-getUpperBound%(time#)="_c3d_cal3d_CalCoreTrack_getUpperBound"
}="c3d_cal3d_CalCoreTrack"
CalCoreMorphTrack^Object{
.m_morphName$&
.m_keyframes:CalCoreMorphKeyframe&[]&
.m_keyframesToDelete:CalCoreMorphKeyframe&[]&
-New%()="_c3d_cal3d_CalCoreMorphTrack_New"
-Delete%()="_c3d_cal3d_CalCoreMorphTrack_Delete"
+Build:CalCoreMorphTrack(mname$=$"morph")="_c3d_cal3d_CalCoreMorphTrack_Build"
-addCoreMorphKeyframe@(pCoreMorphKeyframe:CalCoreMorphKeyframe)="_c3d_cal3d_CalCoreMorphTrack_addCoreMorphKeyframe"
-getState@(time#,weight#)="_c3d_cal3d_CalCoreMorphTrack_getState"
-getUpperBound%(time#)="_c3d_cal3d_CalCoreMorphTrack_getUpperBound"
-setMorphName%(morphname$)="_c3d_cal3d_CalCoreMorphTrack_setMorphName"
-getMorphName$()="_c3d_cal3d_CalCoreMorphTrack_getMorphName"
-getCoreMorphKeyframeCount%()="_c3d_cal3d_CalCoreMorphTrack_getCoreMorphKeyframeCount"
-reserve%(size%)="_c3d_cal3d_CalCoreMorphTrack_reserve"
-getCoreMorphKeyframe:CalCoreMorphKeyframe(idx%)="_c3d_cal3d_CalCoreMorphTrack_getCoreMorphKeyframe"
-scale%(factor#)="_c3d_cal3d_CalCoreMorphTrack_scale"
-getVectorCoreMorphKeyframes:CalCoreMorphKeyframe&[]()="_c3d_cal3d_CalCoreMorphTrack_getVectorCoreMorphKeyframes"
}="c3d_cal3d_CalCoreMorphTrack"
CalCoreMorphKeyframe^Object{
.m_time#&
.m_weight#&
-New%()="_c3d_cal3d_CalCoreMorphKeyframe_New"
-Delete%()="_c3d_cal3d_CalCoreMorphKeyframe_Delete"
-getTime#()="_c3d_cal3d_CalCoreMorphKeyframe_getTime"
-getWeight#()="_c3d_cal3d_CalCoreMorphKeyframe_getWeight"
-setTime%(time#)="_c3d_cal3d_CalCoreMorphKeyframe_setTime"
-setWeight%(weight#)="_c3d_cal3d_CalCoreMorphKeyframe_setWeight"
}="c3d_cal3d_CalCoreMorphKeyframe"
CalCoreMorphAnimation^Object{
.m_vectorCoreMeshID%&[]&
.m_vectorMorphTargetID%&[]&
-New%()="_c3d_cal3d_CalCoreMorphAnimation_New"
-Delete%()="_c3d_cal3d_CalCoreMorphAnimation_Delete"
-addMorphTarget@(coreMeshID%,morphTargetID%)="_c3d_cal3d_CalCoreMorphAnimation_addMorphTarget"
-getVectorCoreMeshID%&[]()="_c3d_cal3d_CalCoreMorphAnimation_getVectorCoreMeshID"
-getVectorMorphTargetID%&[]()="_c3d_cal3d_CalCoreMorphAnimation_getVectorMorphTargetID"
}="c3d_cal3d_CalCoreMorphAnimation"
CalCoreAnimatedMorph^Object{
.m_duration#&
.m_listCoreTrack:CalCoreMorphTrack&[]&
.m_tracksToDelete:CalCoreMorphTrack&[]&
-New%()="_c3d_cal3d_CalCoreAnimatedMorph_New"
-Delete%()="_c3d_cal3d_CalCoreAnimatedMorph_Delete"
-addCoreTrack@(pCoreTrack:CalCoreMorphTrack)="_c3d_cal3d_CalCoreAnimatedMorph_addCoreTrack"
-removeZeroScaleTracks%()="_c3d_cal3d_CalCoreAnimatedMorph_removeZeroScaleTracks"
-getCoreTrack:CalCoreMorphTrack(name$)="_c3d_cal3d_CalCoreAnimatedMorph_getCoreTrack"
-getDuration#()="_c3d_cal3d_CalCoreAnimatedMorph_getDuration"
-getListCoreTrack:CalCoreMorphTrack&[]()="_c3d_cal3d_CalCoreAnimatedMorph_getListCoreTrack"
-setDuration%(duration#)="_c3d_cal3d_CalCoreAnimatedMorph_setDuration"
-scale%(factor#)="_c3d_cal3d_CalCoreAnimatedMorph_scale"
}="c3d_cal3d_CalCoreAnimatedMorph"
CalCoreSubMorphTarget^Object{
.m_vectorBlendVertex:CalBlendVertex&[]&
.m_name$&
-New%()="_c3d_cal3d_CalCoreSubMorphTarget_New"
-Delete%()="_c3d_cal3d_CalCoreSubMorphTarget_Delete"
+Create:CalCoreSubMorphTarget(name$=$"morph")="_c3d_cal3d_CalCoreSubMorphTarget_Create"
-getBlendVertexCount%()="_c3d_cal3d_CalCoreSubMorphTarget_getBlendVertexCount"
-getVectorBlendVertex:CalBlendVertex&[]()="_c3d_cal3d_CalCoreSubMorphTarget_getVectorBlendVertex"
-reserve@(blendVertexCount%)="_c3d_cal3d_CalCoreSubMorphTarget_reserve"
-setBlendVertex@(blendVertexId%,blendVertex:CalBlendVertex)="_c3d_cal3d_CalCoreSubMorphTarget_setBlendVertex"
}="c3d_cal3d_CalCoreSubMorphTarget"
CalBlendVertex^CalVertex{
-New%()="_c3d_cal3d_CalBlendVertex_New"
-Delete%()="_c3d_cal3d_CalBlendVertex_Delete"
}="c3d_cal3d_CalBlendVertex"
CalSubmesh^Object{
.m_coreSubmesh:CalCoreSubmesh&
.m_vectorMorphTargetWeight#&[]&
.m_vectorVertex:CalVector&[]&
.m_vectorNormal:CalVector&[]&
.m_vectorvectorTangentSpace:CalTangentSpace&[]&[]&
.m_vectorFace:CalFace&[]&
.m_vectorPhysicalProperty:CalPhysicalProperty&[]&
.m_vertexCount%&
.m_faceCount%&
.m_coreMaterialId%&
.m_bInternalData@&
-New%()="_c3d_cal3d_CalSubmesh_New"
-Delete%()="_c3d_cal3d_CalSubmesh_Delete"
+FromCore:CalSubmesh(coreSubmesh:CalCoreSubmesh)="_c3d_cal3d_CalSubmesh_FromCore"
-getCoreSubmesh:CalCoreSubmesh()="_c3d_cal3d_CalSubmesh_getCoreSubmesh"
-getCoreMaterialId%()="_c3d_cal3d_CalSubmesh_getCoreMaterialId"
-getFaceCount%()="_c3d_cal3d_CalSubmesh_getFaceCount"
-getFaces%(faceBuffer@@&[])="_c3d_cal3d_CalSubmesh_getFaces"
-getVectorNormal:CalVector&[]()="_c3d_cal3d_CalSubmesh_getVectorNormal"
-getVectorVectorTangentSpace:CalTangentSpace&[]&[]()="_c3d_cal3d_CalSubmesh_getVectorVectorTangentSpace"
-getVectorPhysicalProperty:CalPhysicalProperty&[]()="_c3d_cal3d_CalSubmesh_getVectorPhysicalProperty"
-getVectorVertex:CalVector&[]()="_c3d_cal3d_CalSubmesh_getVectorVertex"
-getVertexCount%()="_c3d_cal3d_CalSubmesh_getVertexCount"
-hasInternalData@()="_c3d_cal3d_CalSubmesh_hasInternalData"
-disableInternalData%()="_c3d_cal3d_CalSubmesh_disableInternalData"
-setCoreMaterialId%(coreMaterialId%)="_c3d_cal3d_CalSubmesh_setCoreMaterialId"
-setLodLevel%(lodLevel#)="_c3d_cal3d_CalSubmesh_setLodLevel"
-isTangentsEnabled@(mapId%)="_c3d_cal3d_CalSubmesh_isTangentsEnabled"
-enableTangents@(mapId%,enabled@)="_c3d_cal3d_CalSubmesh_enableTangents"
-getVectorWeight#()="_c3d_cal3d_CalSubmesh_getVectorWeight"
-setMorphTargetWeight%(blendId%,weight#)="_c3d_cal3d_CalSubmesh_setMorphTargetWeight"
-setMorphTargetWeightbyName%(morphName$,weight#)="_c3d_cal3d_CalSubmesh_setMorphTargetWeightbyName"
-getMorphTargetWeight#(blendId%)="_c3d_cal3d_CalSubmesh_getMorphTargetWeight"
-getBaseWeight#()="_c3d_cal3d_CalSubmesh_getBaseWeight"
-getMorphTargetWeightCount%()="_c3d_cal3d_CalSubmesh_getMorphTargetWeightCount"
-getVectorMorphTargetWeight#&[]()="_c3d_cal3d_CalSubmesh_getVectorMorphTargetWeight"
}="c3d_cal3d_CalSubmesh"
CalMesh^Object{
.m_model:CalModel&
.m_coreMesh:CalCoreMesh&
.m_vectorSubmesh:CalSubmesh&[]&
-New%()="_c3d_cal3d_CalMesh_New"
-Delete%()="_c3d_cal3d_CalMesh_Delete"
+FromCore:CalMesh(coreMesh:CalCoreMesh)="_c3d_cal3d_CalMesh_FromCore"
-getCoreMesh:CalCoreMesh()="_c3d_cal3d_CalMesh_getCoreMesh"
-getSubmesh:CalSubmesh(submeshId%)="_c3d_cal3d_CalMesh_getSubmesh"
-getSubmeshCount%()="_c3d_cal3d_CalMesh_getSubmeshCount"
-getVectorSubmesh:CalSubmesh&[]()="_c3d_cal3d_CalMesh_getVectorSubmesh"
-setLodLevel%(lodLevel#)="_c3d_cal3d_CalMesh_setLodLevel"
-setMaterialSet%(setId%)="_c3d_cal3d_CalMesh_setMaterialSet"
-setModel%(model:CalModel)="_c3d_cal3d_CalMesh_setModel"
-disableInternalData%()="_c3d_cal3d_CalMesh_disableInternalData"
}="c3d_cal3d_CalMesh"
CalBone^Object{
.m_coreBone:CalCoreBone&
.m_skeleton:CalSkeleton&
.m_accumulatedWeight#&
.m_accumulatedWeightAbsolute#&
.m_translation:CalVector&
.m_rotation:CalQuaternion&
.m_translationAbsolute:CalVector&
.m_rotationAbsolute:CalQuaternion&
.m_translationBoneSpace:CalVector&
.m_rotationBoneSpace:CalQuaternion&
.m_transformMatrix:CalMatrix&
.m_boundingBox:CalBoundingBox&
-New%()="_c3d_cal3d_CalBone_New"
-Delete%()="_c3d_cal3d_CalBone_Delete"
+FromCore:CalBone(coreBone:CalCoreBone)="_c3d_cal3d_CalBone_FromCore"
-blendState%(weight#,translation:CalVector,rotation:CalQuaternion)="_c3d_cal3d_CalBone_blendState"
-calculateState%()="_c3d_cal3d_CalBone_calculateState"
-clearState%()="_c3d_cal3d_CalBone_clearState"
-getCoreBone:CalCoreBone()="_c3d_cal3d_CalBone_getCoreBone"
-setCoreState%()="_c3d_cal3d_CalBone_setCoreState"
-setCoreStateRecursive%()="_c3d_cal3d_CalBone_setCoreStateRecursive"
-SetRotation%(rotation:CalQuaternion)="_c3d_cal3d_CalBone_SetRotation"
-GetRotation:CalQuaternion()="_c3d_cal3d_CalBone_GetRotation"
-getRotationAbsolute:CalQuaternion()="_c3d_cal3d_CalBone_getRotationAbsolute"
-getRotationBoneSpace:CalQuaternion()="_c3d_cal3d_CalBone_getRotationBoneSpace"
-setTranslation%(translation:CalVector)="_c3d_cal3d_CalBone_setTranslation"
-getTranslation:CalVector()="_c3d_cal3d_CalBone_getTranslation"
-getTranslationAbsolute:CalVector()="_c3d_cal3d_CalBone_getTranslationAbsolute"
-getTranslationBoneSpace:CalVector()="_c3d_cal3d_CalBone_getTranslationBoneSpace"
-getTransformMatrix:CalMatrix()="_c3d_cal3d_CalBone_getTransformMatrix"
-lockState%()="_c3d_cal3d_CalBone_lockState"
-setSkeleton%(skeleton:CalSkeleton)="_c3d_cal3d_CalBone_setSkeleton"
-calculateBoundingBox%()="_c3d_cal3d_CalBone_calculateBoundingBox"
-getBoundingBox:CalBoundingBox()="_c3d_cal3d_CalBone_getBoundingBox"
}="c3d_cal3d_CalBone"
CalSkeleton^Object{
.m_coreSkeleton:CalCoreSkeleton&
.m_vectorBone:CalBone&[]&
.m_isBoundingBoxesComputed@&
-New%()="_c3d_cal3d_CalSkeleton_New"
-Delete%()="_c3d_cal3d_CalSkeleton_Delete"
+FromCore:CalSkeleton(coreSkeleton:CalCoreSkeleton)="_c3d_cal3d_CalSkeleton_FromCore"
-calculateState%()="_c3d_cal3d_CalSkeleton_calculateState"
-clearState%()="_c3d_cal3d_CalSkeleton_clearState"
-Create%(coreSkeleton:CalCoreSkeleton)="_c3d_cal3d_CalSkeleton_Create"
-getBone:CalBone(boneId%)="_c3d_cal3d_CalSkeleton_getBone"
-getCoreSkeleton:CalCoreSkeleton()="_c3d_cal3d_CalSkeleton_getCoreSkeleton"
-getVectorBone:CalBone&[]()="_c3d_cal3d_CalSkeleton_getVectorBone"
-getBoneCount%()="_c3d_cal3d_CalSkeleton_getBoneCount"
-lockState%()="_c3d_cal3d_CalSkeleton_lockState"
-getBoneBoundingBox:CalMinMax(Mini:CalVector="bbNullObject",Maxi:CalVector="bbNullObject")="_c3d_cal3d_CalSkeleton_getBoneBoundingBox"
-calculateBoundingBoxes%()="_c3d_cal3d_CalSkeleton_calculateBoundingBoxes"
-getBonePoints%(pointBuffer#&[])="_c3d_cal3d_CalSkeleton_getBonePoints"
-getBonePointsStatic%(pointBuffer#&[])="_c3d_cal3d_CalSkeleton_getBonePointsStatic"
-getBoneLines%(lineBuffer#&[])="_c3d_cal3d_CalSkeleton_getBoneLines"
-getBoneLinesStatic%(lineBuffer#&[])="_c3d_cal3d_CalSkeleton_getBoneLinesStatic"
}="c3d_cal3d_CalSkeleton"
CalMinMax^Object{
.Minimum:CalVector&
.Maximum:CalVector&
-New%()="_c3d_cal3d_CalMinMax_New"
-Delete%()="_c3d_cal3d_CalMinMax_Delete"
}="c3d_cal3d_CalMinMax"
CalModel^Object{
.m_coreModel:CalCoreModel&
.m_skeleton:CalSkeleton&
.m_mixer:CalMixer&
.m_morphTargetMixer:CalMorphTargetMixer&
.m_physique:CalPhysique&
.m_springSystem:CalSpringSystem&
.m_renderer:CalRenderer&
.m_userData:Object&
.m_vectorMesh:CalMesh&[]&
.m_boundingBox:CalBoundingBox&
-New%()="_c3d_cal3d_CalModel_New"
-Delete%()="_c3d_cal3d_CalModel_Delete"
+FromCore:CalModel(coreModel:CalCoreModel)="_c3d_cal3d_CalModel_FromCore"
-attachMesh@(coreMeshId%)="_c3d_cal3d_CalModel_attachMesh"
-detachMesh@(coreMeshId%)="_c3d_cal3d_CalModel_detachMesh"
-getCoreModel:CalCoreModel()="_c3d_cal3d_CalModel_getCoreModel"
-getMesh:CalMesh(coreMeshId%)="_c3d_cal3d_CalModel_getMesh"
-getMixer:CalMixer()="_c3d_cal3d_CalModel_getMixer"
-getAbstractMixer:CalAbstractMixer()="_c3d_cal3d_CalModel_getAbstractMixer"
-setAbstractMixer%(mixer:CalAbstractMixer)="_c3d_cal3d_CalModel_setAbstractMixer"
-getMorphTargetMixer:CalMorphTargetMixer()="_c3d_cal3d_CalModel_getMorphTargetMixer"
-getPhysique:CalPhysique()="_c3d_cal3d_CalModel_getPhysique"
-getRenderer:CalRenderer()="_c3d_cal3d_CalModel_getRenderer"
-getSkeleton:CalSkeleton()="_c3d_cal3d_CalModel_getSkeleton"
-getSpringSystem:CalSpringSystem()="_c3d_cal3d_CalModel_getSpringSystem"
-getBoundingBox:CalBoundingBox(precision@)="_c3d_cal3d_CalModel_getBoundingBox"
-getUserData:Object()="_c3d_cal3d_CalModel_getUserData"
-getVectorMesh:CalMesh&[]()="_c3d_cal3d_CalModel_getVectorMesh"
-setLodLevel%(lodLevel#)="_c3d_cal3d_CalModel_setLodLevel"
-setMaterialSet%(setId%)="_c3d_cal3d_CalModel_setMaterialSet"
-setUserData%(userData:Object)="_c3d_cal3d_CalModel_setUserData"
-update%(deltaTime#)="_c3d_cal3d_CalModel_update"
-disableInternalData%()="_c3d_cal3d_CalModel_disableInternalData"
}="c3d_cal3d_CalModel"
CalAnimation^Object{
.m_coreAnimation:CalCoreAnimation&
.m_lastCallbackTimes#&[]&
.m_type%&
.m_state%&
.m_time#&
.m_timeFactor#&
.m_weight#&
-New%()="_c3d_cal3d_CalAnimation_New"
-Delete%()="_c3d_cal3d_CalAnimation_Delete"
+FromCore:CalAnimation(coreAnimation:CalCoreAnimation)="_c3d_cal3d_CalAnimation_FromCore"
-getCoreAnimation:CalCoreAnimation()="_c3d_cal3d_CalAnimation_getCoreAnimation"
-getState%()="_c3d_cal3d_CalAnimation_getState"
-getTime#()="_c3d_cal3d_CalAnimation_getTime"
-getType%()="_c3d_cal3d_CalAnimation_getType"
-getWeight#()="_c3d_cal3d_CalAnimation_getWeight"
-setTime%(time#)="_c3d_cal3d_CalAnimation_setTime"
-setTimeFactor%(timeFactor#)="_c3d_cal3d_CalAnimation_setTimeFactor"
-getTimeFactor#()="_c3d_cal3d_CalAnimation_getTimeFactor"
-checkCallbacks%(animationTime#,model:CalModel)="_c3d_cal3d_CalAnimation_checkCallbacks"
-completeCallbacks%(model:CalModel)="_c3d_cal3d_CalAnimation_completeCallbacks"
-setType%(AType%)="_c3d_cal3d_CalAnimation_setType"
-setState%(state%)="_c3d_cal3d_CalAnimation_setState"
-setWeight%(weight#)="_c3d_cal3d_CalAnimation_setWeight"
}="c3d_cal3d_CalAnimation"
CalAnimationCallback^CalCallbackRecord{
-New%()="_c3d_cal3d_CalAnimationCallback_New"
-Delete%()="_c3d_cal3d_CalAnimationCallback_Delete"
-AnimationUpdate%(anim_time#,model:CalModel,userData:Object)="_c3d_cal3d_CalAnimationCallback_AnimationUpdate"
-AnimationComplete%(model:CalModel,userData:Object)="_c3d_cal3d_CalAnimationCallback_AnimationComplete"
}="c3d_cal3d_CalAnimationCallback"
CalAnimationAction^CalAnimation{
.m_delayIn#&
.m_delayOut#&
.m_delayTarget#&
.m_weightTarget#&
.m_autoLock@&
-New%()="_c3d_cal3d_CalAnimationAction_New"
-Delete%()="_c3d_cal3d_CalAnimationAction_Delete"
+BuildFromCore:CalAnimationAction(coreAnimation:CalCoreAnimation)="_c3d_cal3d_CalAnimationAction_BuildFromCore"
-execute@(delayIn#,delayOut#,weightTarget#=1#,autoLock@=0)="_c3d_cal3d_CalAnimationAction_execute"
-update@(deltaTime#)="_c3d_cal3d_CalAnimationAction_update"
}="c3d_cal3d_CalAnimationAction"
CalAnimationCycle^CalAnimation{
.m_targetDelay#&
.m_targetWeight#&
-New%()="_c3d_cal3d_CalAnimationCycle_New"
-Delete%()="_c3d_cal3d_CalAnimationCycle_Delete"
+BuildFromCore:CalAnimationCycle(coreAnimation:CalCoreAnimation)="_c3d_cal3d_CalAnimationCycle_BuildFromCore"
-blend@(weight#,Delay#)="_c3d_cal3d_CalAnimationCycle_blend"
-setAsync%(time#,duration#)="_c3d_cal3d_CalAnimationCycle_setAsync"
-update@(deltaTime#)="_c3d_cal3d_CalAnimationCycle_update"
}="c3d_cal3d_CalAnimationCycle"
CalAnimationType^Object{
TYPE_NONE%=0
TYPE_CYCLE%=1
TYPE_POSE%=2
TYPE_ACTION%=3
-New%()="_c3d_cal3d_CalAnimationType_New"
-Delete%()="_c3d_cal3d_CalAnimationType_Delete"
}="c3d_cal3d_CalAnimationType"
CalAnimationState^Object{
STATE_NONE%=0
STATE_SYNC%=1
STATE_ASYNC%=2
STATE_IN%=3
STATE_STEADY%=4
STATE_OUT%=5
STATE_STOPPED%=6
-New%()="_c3d_cal3d_CalAnimationState_New"
-Delete%()="_c3d_cal3d_CalAnimationState_Delete"
}="c3d_cal3d_CalAnimationState"
Modf#(a#,n#)="c3d_cal3d_Modf"
CalAbstractMixer^Object{
-New%()="_c3d_cal3d_CalAbstractMixer_New"
-Delete%()="_c3d_cal3d_CalAbstractMixer_Delete"
-isDefaultMixer@()="_c3d_cal3d_CalAbstractMixer_isDefaultMixer"
-updateAnimation%(deltaTime#)="_c3d_cal3d_CalAbstractMixer_updateAnimation"
-updateSkeleton%()="_c3d_cal3d_CalAbstractMixer_updateSkeleton"
}A="c3d_cal3d_CalAbstractMixer"
CalMixer^CalAbstractMixer{
.m_model:CalModel&
.m_vectorAnimation:CalAnimation&[]&
.m_listAnimationAction:CalAnimationAction&[]&
.m_listAnimationCycle:CalAnimationCycle&[]&
.m_animationTime#&
.m_animationDuration#&
.m_timeFactor#&
-New%()="_c3d_cal3d_CalMixer_New"
-Delete%()="_c3d_cal3d_CalMixer_Delete"
+FromModel:CalMixer(model:CalModel)="_c3d_cal3d_CalMixer_FromModel"
-isDefaultMixer@()="_c3d_cal3d_CalMixer_isDefaultMixer"
-blendCycle@(id%,weight#,Delay#)="_c3d_cal3d_CalMixer_blendCycle"
-clearCycle@(id%,Delay#)="_c3d_cal3d_CalMixer_clearCycle"
-executeAction@(id%,delayIn#,delayOut#,weightTarget#,autoLock@)="_c3d_cal3d_CalMixer_executeAction"
-removeAction@(id%)="_c3d_cal3d_CalMixer_removeAction"
-updateAnimation%(deltaTime#)="_c3d_cal3d_CalMixer_updateAnimation"
-updateSkeleton%()="_c3d_cal3d_CalMixer_updateSkeleton"
-getAnimationTime#()="_c3d_cal3d_CalMixer_getAnimationTime"
-getAnimationDuration#()="_c3d_cal3d_CalMixer_getAnimationDuration"
-setAnimationTime%(animationTime#)="_c3d_cal3d_CalMixer_setAnimationTime"
-setTimeFactor%(timeFactor#)="_c3d_cal3d_CalMixer_setTimeFactor"
-getTimeFactor#()="_c3d_cal3d_CalMixer_getTimeFactor"
-getCalModel:CalModel()="_c3d_cal3d_CalMixer_getCalModel"
-getAnimationVector:CalAnimation&[]()="_c3d_cal3d_CalMixer_getAnimationVector"
-getAnimationActionList:CalAnimationAction&[]()="_c3d_cal3d_CalMixer_getAnimationActionList"
-getAnimationCycle:CalAnimationCycle&[]()="_c3d_cal3d_CalMixer_getAnimationCycle"
}="c3d_cal3d_CalMixer"
addExtraKeyframeForLoopedAnim%(coreAnimation:CalCoreAnimation)="c3d_cal3d_addExtraKeyframeForLoopedAnim"
CalMorphTargetMixer^Object{
.m_model:CalModel&
.m_vectorCurrentWeight#&[]&
.m_vectorEndWeight#&[]&
.m_vectorDuration#&[]&
.mPlayTime#&
.mDuration#&
.mPlayedAnimatedMorphID%&
-New%()="_c3d_cal3d_CalMorphTargetMixer_New"
-Delete%()="_c3d_cal3d_CalMorphTargetMixer_Delete"
+FromModel:CalMorphTargetMixer(model:CalModel)="_c3d_cal3d_CalMorphTargetMixer_FromModel"
-blend@(id%,weight#,Delay#)="_c3d_cal3d_CalMorphTargetMixer_blend"
-clear@(id%,Delay#)="_c3d_cal3d_CalMorphTargetMixer_clear"
-getCurrentWeight#(id%)="_c3d_cal3d_CalMorphTargetMixer_getCurrentWeight"
-getCurrentWeightBase#()="_c3d_cal3d_CalMorphTargetMixer_getCurrentWeightBase"
-getMorphTargetCount%()="_c3d_cal3d_CalMorphTargetMixer_getMorphTargetCount"
-update%(deltaTime#)="_c3d_cal3d_CalMorphTargetMixer_update"
-SetTrackWeights%(morph:CalCoreAnimatedMorph,elapsedTime#)="_c3d_cal3d_CalMorphTargetMixer_SetTrackWeights"
-CalcKeyframeWeight#(keyFrames:CalCoreMorphKeyframe&[],elapsedTime#)="_c3d_cal3d_CalMorphTargetMixer_CalcKeyframeWeight"
-Lerp#(x#,y#,t#)="_c3d_cal3d_CalMorphTargetMixer_Lerp"
-MapRangeValue#(sX#,xMin#,xMax#,yMin#,yMax#)="_c3d_cal3d_CalMorphTargetMixer_MapRangeValue"
-CalcNormal#(sX#,sMin#,sMax#)="_c3d_cal3d_CalMorphTargetMixer_CalcNormal"
-ApplyWeightToMorphMesh%(morphMeshName$,trackWeight#)="_c3d_cal3d_CalMorphTargetMixer_ApplyWeightToMorphMesh"
}="c3d_cal3d_CalMorphTargetMixer"
CalPhysique^Object{
.m_model:CalModel&
.m_normalize@&
.m_axisFactorX#&
.m_axisFactorY#&
.m_axisFactorZ#&
-New%()="_c3d_cal3d_CalPhysique_New"
-Delete%()="_c3d_cal3d_CalPhysique_Delete"
+FromModel:CalPhysique(model:CalModel)="_c3d_cal3d_CalPhysique_FromModel"
-calculateTangentSpaces%(submesh:CalSubmesh,mapId%,tangentSpaceBuffer#&[],stride%=4)="_c3d_cal3d_CalPhysique_calculateTangentSpaces"
-calculateNormals%(submesh:CalSubmesh,normalBuffer#&[],stride%=3)="_c3d_cal3d_CalPhysique_calculateNormals"
-calculateVertices%(submesh:CalSubmesh,vertexBuffer#&[],stride%=3)="_c3d_cal3d_CalPhysique_calculateVertices"
-calculateVertex:CalVector(submesh:CalSubmesh,vertexId%)="_c3d_cal3d_CalPhysique_calculateVertex"
-calculateVerticesAndNormals%(submesh:CalSubmesh,vertexBuffer#&[],stride%=6)="_c3d_cal3d_CalPhysique_calculateVerticesAndNormals"
-calculateVerticesNormalsAndTexCoords%(submesh:CalSubmesh,vertexBuffer#&[],numTexCoords%)="_c3d_cal3d_CalPhysique_calculateVerticesNormalsAndTexCoords"
-update%()="_c3d_cal3d_CalPhysique_update"
-setNormalization%(normalize@)="_c3d_cal3d_CalPhysique_setNormalization"
-setAxisFactorX%(factor#)="_c3d_cal3d_CalPhysique_setAxisFactorX"
-setAxisFactorY%(factor#)="_c3d_cal3d_CalPhysique_setAxisFactorY"
-setAxisFactorZ%(factor#)="_c3d_cal3d_CalPhysique_setAxisFactorZ"
-calculateVerticesAndNormalsInternal%(submesh:CalSubmesh,veritces:CalVector&[],normals:CalVector&[])="_c3d_cal3d_CalPhysique_calculateVerticesAndNormalsInternal"
-calculateTangentSpacesInternal%(submesh:CalSubmesh,mapId%,tangentSpaces:CalTangentSpace&[])="_c3d_cal3d_CalPhysique_calculateTangentSpacesInternal"
}="c3d_cal3d_CalPhysique"
CalSpringSystem^Object{
.m_model:CalModel&
.m_gravity:CalVector&
.m_force:CalVector&
.m_collision@&
-New%()="_c3d_cal3d_CalSpringSystem_New"
-Delete%()="_c3d_cal3d_CalSpringSystem_Delete"
+FromModel:CalSpringSystem(model:CalModel)="_c3d_cal3d_CalSpringSystem_FromModel"
-calculateForces%(submesh:CalSubmesh,deltaTime#)="_c3d_cal3d_CalSpringSystem_calculateForces"
-calculateVertices%(submesh:CalSubmesh,deltaTime#)="_c3d_cal3d_CalSpringSystem_calculateVertices"
-update%(deltaTime#)="_c3d_cal3d_CalSpringSystem_update"
-getGravityVector:CalVector()="_c3d_cal3d_CalSpringSystem_getGravityVector"
-setGravityVector%(gravity:CalVector)="_c3d_cal3d_CalSpringSystem_setGravityVector"
-getForceVector:CalVector()="_c3d_cal3d_CalSpringSystem_getForceVector"
-setForceVector%(force:CalVector)="_c3d_cal3d_CalSpringSystem_setForceVector"
-setCollisionDetection%(collision@)="_c3d_cal3d_CalSpringSystem_setCollisionDetection"
}="c3d_cal3d_CalSpringSystem"
CalRenderer^Object{
.m_model:CalModel&
.m_selectedSubmesh:CalSubmesh&
-New%()="_c3d_cal3d_CalRenderer_New"
-Delete%()="_c3d_cal3d_CalRenderer_Delete"
+FromModel:CalRenderer(model:CalModel)="_c3d_cal3d_CalRenderer_FromModel"
+FromRenderer:CalRenderer(renderer:CalRenderer)="_c3d_cal3d_CalRenderer_FromRenderer"
-beginRendering@()="_c3d_cal3d_CalRenderer_beginRendering"
-endRendering%()="_c3d_cal3d_CalRenderer_endRendering"
-getAmbientColor%(colorBuffer#&[])="_c3d_cal3d_CalRenderer_getAmbientColor"
-getDiffuseColor%(colorBuffer#&[])="_c3d_cal3d_CalRenderer_getDiffuseColor"
-getFaceCount%()="_c3d_cal3d_CalRenderer_getFaceCount"
-getFaces%(faceBuffer@@&[])="_c3d_cal3d_CalRenderer_getFaces"
-getMapCount%()="_c3d_cal3d_CalRenderer_getMapCount"
-getMapUserData:Object(mapId%)="_c3d_cal3d_CalRenderer_getMapUserData"
-getMeshCount%()="_c3d_cal3d_CalRenderer_getMeshCount"
-getNormals%(normalBuffer#&[],stride%=3)="_c3d_cal3d_CalRenderer_getNormals"
-getShininess#()="_c3d_cal3d_CalRenderer_getShininess"
-getSpecularColor%(colorBuffer#&[])="_c3d_cal3d_CalRenderer_getSpecularColor"
-getSubmeshCount%(meshId%)="_c3d_cal3d_CalRenderer_getSubmeshCount"
-getTextureCoordinates%(mapId%,textureCoordinateBuffer#&[],stride%=2)="_c3d_cal3d_CalRenderer_getTextureCoordinates"
-getVertexCount%()="_c3d_cal3d_CalRenderer_getVertexCount"
-getVertices%(vertexBuffer#&[],stride%=3)="_c3d_cal3d_CalRenderer_getVertices"
-getTangentSpaces%(mapId%,tangentSpaceBuffer#&[],stride%=4)="_c3d_cal3d_CalRenderer_getTangentSpaces"
-getVerticesAndNormals%(vertexBuffer#&[],stride%=6)="_c3d_cal3d_CalRenderer_getVerticesAndNormals"
-getVerticesNormalsAndTexCoords%(vertexBuffer#&[],numTexCoords%=1)="_c3d_cal3d_CalRenderer_getVerticesNormalsAndTexCoords"
-isTangentsEnabled@(mapId%)="_c3d_cal3d_CalRenderer_isTangentsEnabled"
-selectMeshSubmesh@(meshId%,submeshId%)="_c3d_cal3d_CalRenderer_selectMeshSubmesh"
-setNormalization%(normalize@)="_c3d_cal3d_CalRenderer_setNormalization"
}="c3d_cal3d_CalRenderer"
DeltaTimer^Object{
.targetfps%&
.currentticks%&
.rtime%&
.lastticks%&
.frametime%&
.delta#&
.frames%&
.actualFPS%&
-New%()="_c3d_cal3d_DeltaTimer_New"
-Delete%()="_c3d_cal3d_DeltaTimer_Delete"
+CreateDelta:DeltaTimer(fps%)="_c3d_cal3d_DeltaTimer_CreateDelta"
-UpdateDelta%()="_c3d_cal3d_DeltaTimer_UpdateDelta"
}="c3d_cal3d_DeltaTimer"
Delta:DeltaTimer&=mem:p("c3d_cal3d_Delta")
